﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test.DAL;
using Test.Model;

namespace Test.BLL
{
    public class ClassInfoBLL
    {
        ClassInfoDAL dal = new ClassInfoDAL();
        public  List<ClassInfo> Select(string name = "")
        {
            return dal.Select(name);
        }
        public  ClassInfo Select(int id)
        {
            return dal.Single(id);
        }

        public  int Insert(ClassInfo info)
        {
            return dal.Insert(info);
        }
        public  int Delete(ClassInfo info)
        {
            return dal.Delete(info);
        }

        public  int Update(ClassInfo info)
        {
            return dal.Update(info);
        }
    }
}
